const mongoose = require("mongoose")
const Schema = mongoose.Schema
const Discuss_type = {
    article_id: {
        type: String,
        default: ""
    },
    user_id: {
        type: String,
        default: ""
    },
    comment_text: {
        type: String,
        default: ""
    },
    comment_date: {
        type: Number,
        default: Date.now()
    },

    parent_comment_id: {
        type: String,
        default: ""
    },
    isDelete: {
        type: Boolean,
        default: false
    },
    dis_type: {
        type: String,
        default: ""
    }

}

const Discuss_Model = mongoose.model("discuss", new Schema(Discuss_type))



module.exports = Discuss_Model